package com.tanhua.domain.mogo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {

    private ObjectId id;
    private Long userId; // 语音用户id
    private Long sid; //自动增长

    private String soundUrl; //语音文件，URL
    private Integer remainingTimes; //发语音剩余次数8次/天

}
